package com.syx.service.impl;

import com.syx.dao.CarDao;
import com.syx.entity.Car;
import com.syx.service.CarService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class CarServiceImpl implements CarService {
    @Resource
    private CarDao carDao;

    @Override
    public List carList(Map map) {
        return carDao.carList(map);
    }

    @Override
    public List typeList() {
        return carDao.typeList();
    }

    @Override
    public int add(Car car) {
        int i = carDao.add(car);
        return i;
    }

    @Override
    public int del(Integer cid) {
        return carDao.del(cid);
    }
}
